package com.lsz.crm.mapper;

import com.lsz.crm.base.BaseMapper;
import com.lsz.crm.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface UserMapper extends BaseMapper<User,Integer> {

    /**
     * 根据用户名查询用户
     * @param userName
     * @return
     */
    User queryUserByUserName(String userName);

    /**
     * 查询所有的销售人员
     * @return
     */
    List<Map<String,Object>> queryAllSales();
}